package com.zqh.myfmmall.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zqh.myfmmall.dao.OrderItemDao;
import com.zqh.myfmmall.entity.OrderItem;
import com.zqh.myfmmall.service.OrderItemService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 订单项/快照 (OrderItem)表服务实现类
 *
 * @author KONO 曾淇杭哒！
 * @since 2022-01-20 20:53:00
 */
@Service("orderItemService")
public class OrderItemServiceImpl extends ServiceImpl<OrderItemDao, OrderItem> implements OrderItemService {

    @Override
    public List<OrderItem> getByOrderId(String orderId) {
        List<OrderItem> orderItems = query().eq("order_id", orderId).list();
        return orderItems;
    }
}

